<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<jsp:include page="/inc/header.jsp"></jsp:include>
<%String path=request.getServletContext().getContextPath(); %>
	<section>
		<h3>管理员登陆</h3>
		<%
			String err =request.getParameter("err");
			if(err!=null&&err.equals("1")){
			%>
				<p class="err">对不起，用户名或者密码错误！</p>
			<%
			}
			else if(err!=null&&err.equals("2")){
			%>
				<p class="err">对不起，验证码输入错误！</p>
			<%
			}
		%>
		<form action="<%=path %>/ManagerController?action=login" method="post">
			<fieldset>
				<label>账号</label>
				<input type="text" name="userName" >
			</fieldset>
			<fieldset>
				<label>密码</label>
				<input type="pass" name="userPass" >
			</fieldset>
			<fieldset>
				<input type="text" name="randcode" value="请输入验证码" onfocus="this.value='';" onblur="if(this.value==''){this.value ='输入验证';}">
				<img src="/Travel/code" onclick="this.src='/Travel/code?'+Math.random()">
			</fieldset>
			<fieldset>
				<input type="submit" value="登录">
			</fieldset>
		</form>
	</section>
<jsp:include page="/inc/footer.jsp"></jsp:include>